import { KMessage,throttle } from "./method";

export const msgSuccess=throttle(
    str=>KMessage(str,"success"),
    1000
)
export const msgInfo=throttle(
    str=>KMessage(str,"info"),
    1000
)
export const msgPrimary=throttle(
    str=>KMessage(str,"primary"),
    1000
)
export const sayError=throttle(
    str=>KMessage(str,"danger"),
    1000
)

export const sayWarning = throttle(
  str=>KMessage(str,"warning"),
  1000
)
